const Conf = {}
const path = require('path')
const cf = require('../package.json')
Conf.host = process.env.NODE_ENV === 'development' ? '127.0.0.1' : '139.196.250.18'
Conf.port = process.env.NODE_ENV === 'development' ? '8888' : ''
Conf.entrance = '/index.html'
Conf.domain = 'http://' + Conf.host + ':' + Conf.port + '/myt/' + cf.version
Conf.root = process.env.NODE_ENV === 'development' ? process.cwd() : path.resolve(process.cwd(), 'resources/app.asar')

Conf.singleRoot = path.join(process.cwd(), 'html/pack') // 单页应用入口
Conf.normalRoot = path.join(process.cwd(), 'html') // 正常路径入口

module.exports = Conf
